package com.bite.system.Domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.bite.common.core.domain.BaseEntity;
import lombok.Data;

// mysql> desc tb_sys_user;
// +--------------+---------------------+------+-----+---------+-------+
// | Field        | Type                | Null | Key | Default | Extra |
// +--------------+---------------------+------+-----+---------+-------+
// | user_id      | bigint(20) unsigned | NO   | PRI | NULL    |       |
// | user_account | varchar(20)         | NO   | UNI | NULL    |       |
// | password     | varchar(20)         | NO   |     | NULL    |       |
// | create_by    | bigint(20) unsigned | NO   |     | NULL    |       |
// | create_time  | datetime            | NO   |     | NULL    |       |
// | update_by    | bigint(20) unsigned | YES  |     | NULL    |       |
// | update_time  | datetime            | YES  |     | NULL    |       |
// +--------------+---------------------+------+-----+---------+-------+
@TableName("tb_sys_user")
@Data
public class SysUser extends BaseEntity {

    @TableId(type = IdType.ASSIGN_ID)
    private Long userId;
    private String userAccount;
    private String password;

}
